VoiceBase< numValues, SamplePrecision, numChannels, GlobalParameterStorage > Class Template Reference

Example Voice class for the Steinberg::Vst::VoiceProcessorImplementation. More...

#include <voicebase.h>

Public Member Functions

int32 getNoteId () const
 Returns the current note id of this voice.
virtual void setGlobalParameterStorage (GlobalParameterStorage *globalParameters)
 Sets a new GlobalParameterStorage.
virtual void setSampleRate (ParamValue sampleRate)
 Sets the sampleRate.
float getSampleRate () const
 Returns the sampleRate.
virtual void setNoteExpressionValue (int32 index, ParamValue value)
virtual void noteOn (int32 pitch, ParamValue velocity, float tuning, int32 sampleOffset, int32 noteId)
virtual void noteOff (ParamValue velocity, int32 sampleOffset)
virtual void reset ()

Protected Member Functions

 VoiceBase ()
 VoiceBase (const VoiceBase &vb)
virtual ~VoiceBase ()

Protected Attributes

GlobalParameterStorage * globalParameters
int32 noteId
int32 pitch
int32 noteOnSampleOffset
int32 noteOffSampleOffset
float tuning
ParamValue sampleRate
ParamValue noteOnVelocity
ParamValue noteOffVelocity
ParamValue values [numValues]

Detailed Description

template<uint32 numValues, class SamplePrecision, uint32 numChannels, class GlobalParameterStorage>
class Steinberg::Vst::VoiceBase< numValues, SamplePrecision, numChannels, GlobalParameterStorage >

Example Voice class for the Steinberg::Vst::VoiceProcessorImplementation.

Implementation classes need to implement the following additional method:

   bool process (SamplePrecision* outputBuffers[numChannels], int32 numSamples);

Constructor & Destructor Documentation

VoiceBase (  )  [inline, protected]
VoiceBase ( const VoiceBase< numValues, SamplePrecision, numChannels, GlobalParameterStorage > &  vb  )  [inline, protected]
~VoiceBase (  )  [inline, protected, virtual]

Member Function Documentation

int32 getNoteId (  )  const [inline]

Returns the current note id of this voice.

virtual void setGlobalParameterStorage ( GlobalParameterStorage *  globalParameters  )  [inline, virtual]

Sets a new GlobalParameterStorage.

virtual void setSampleRate ( ParamValue  sampleRate  )  [inline, virtual]

Sets the sampleRate.

Reimplemented in Voice< SamplePrecision >.

float getSampleRate (  )  const [inline]

Returns the sampleRate.

virtual void setNoteExpressionValue ( int32  index,
ParamValue  value 
) [inline, virtual]

Reimplemented in Voice< SamplePrecision >.

void noteOn ( int32  pitch,
ParamValue  velocity,
float  tuning,
int32  sampleOffset,
int32  noteId 
) [inline, virtual]

Reimplemented in Voice< SamplePrecision >.

void noteOff ( ParamValue  velocity,
int32  sampleOffset 
) [inline, virtual]

Reimplemented in Voice< SamplePrecision >.

virtual void reset (  )  [inline, virtual]

Reimplemented in Voice< SamplePrecision >.


Field Documentation

GlobalParameterStorage* globalParameters [protected]
int32 noteId [protected]
int32 pitch [protected]
float tuning [protected]
ParamValue sampleRate [protected]
ParamValue values[numValues] [protected]
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Empty

Copyright ©2013 Steinberg Media Technologies GmbH. All Rights Reserved.